package Cards {
import scala.collection.mutable.ArrayBuffer

class Card(value:Int, suit:String) {
  def getSuit:String = this.suit
  def getValue:Int   = this.value
  override def toString():String = {
    return this.getValue + " " + this.getSuit
  }
}

class Deck() {
  var suits:Array[String] = Array("Spade","Heart","Club","Diamond")
  var deck:ArrayBuffer[Card] = new ArrayBuffer[Card](52)
  for(suit <- suits) {
    for (i <- 1 to 13) {
      deck += new Card(i,suit)
    }
  }
  override def toString():String = {
    var string:String = ""
    for (card <- this.deck) {
      string += card + " "
    }
    return string
  }
}
}
